package com.webflux;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.mongodb.repository.config.EnableReactiveMongoRepositories;

@SpringBootApplication
//@EnableReactiveMongoRepositories
@Slf4j
public class DmeoSpringBootWebfluxApplication {

	public static void main(String[] args) {
//		SpringApplication.run(DmeoSpringBootWebfluxApplication.class, args);

		SpringApplication app = new SpringApplication(DmeoSpringBootWebfluxApplication.class);
		//这个Banner就是Spring几个大字
//		app.setBannerMode(Banner.Mode.OFF);
		app.run(args);
		log.info("PortalApplication is success!");
		System.err.println("sample started. http://localhost:8080/user/");
		System.err.println("sample started. http://localhost:8080/1");
		System.err.println("sample started. http://localhost:8080/2");
	}
}
